<?php
/*
	
*/
defined('BY_JYA') or exit('Access Denied');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'reply';
if($_RQ['op']=='reply'){
	//检查是否有已经投票
	$optid=pdo_getcolumn('jy_h5game_fans',array('rid'=>$id,'uniacid'=>$_SESSION['uniacid'],'fansId'=>$_SESSION['uid']),'optid');
	//查询可选的选项
	$opts=pdo_getall('jy_h5game_opt',array('uniacid'=>$_SESSION['uniacid'],'rid'=>$id,'status'=>1));
	$return['post']=array('rid'=>$id);
	$return['opts']=$opts;
	if($optid>0){
		$return['htmls']=$this->template_url('games/'.$item['fileName'].'/over');
	}else{
		$return['htmls']=$this->template_url('games/'.$item['fileName'].'/index');
	}
	exi($return);
}